<template>
    <div class="student">
        <h2>学生名称：{{studentName}}</h2>
        <h2>学生年龄：{{age}}</h2>
    </div>
</template>
<script setup>
    /* export default{
        name:'Student',
        setup(){
            let studentName = '张XX';
            let age = 22;
            return{studentName,age}
        }
    } */
    let studentName = '张XX';
    let age = 22;
</script>
<style>
    .student{
        background-color: bisque;
    }
</style>